package com.example.superoa.model.mappers;

import java.util.Date;

import org.apache.ibatis.annotations.Mapper;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

@Mapper
public interface LeaveMapper {
	public JSONArray LeaveSelectAll();
	public JSONObject selectId(int id);
	public Integer selectLeaveCount(int id,int qclass,int year,int month);
	public Integer selectoldid();
	public Integer selectfirstid();
	public Integer selectIDD(int id);
	public Integer selectbetween(int id,Date date);
	
	public JSONArray selectQingjia(Integer staff_id);
	//根据员工id与时间来查看输入输入日期是否请假了
	public JSONObject selectBqLeave(Integer id,Date date);
	//根据员工id查询未审核的请假申请
	public JSONArray selectLeaveID(Integer staff_id);
	
	//根据员工id查询请假申请
	public JSONArray selectLeaveIDD(Integer staff_id);
	
	//根据申请id查找申请
	public JSONArray selectLeaveid(Integer id);
}
